export * from "./useDark"
export * from "./useOauth"
export * from "./useRouter"
export * from "./useManualTheme"

export function randomStr(length: number = 10) {
  return Math.random().toString(36).substring(2, 2 + length);
}

export const getCurrentPage = () => {
  const pages = getCurrentPages(); // 获取页面栈
  const currentPage = pages[pages.length - 1]; // 当前页面
  return currentPage.route || '';
}